package com.itany.corejava.day03;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("输入一年：");
        int year=sc.nextInt();

        if((year%400==0)||((year%4==0)&&(year%100!=0))){
            System.out.println("是闰年");
        }else{
            System.out.println("不是闰年");
        }

    }
}
